import { ProtocolComponent } from "@components/Apps/InertialNavigation/InertialNavigationComponent";
import HomeContent from "@components/Apps/Simulation/HomeContent";
import { ClientMessage } from "@runtime/generate/message/ClientMessage";
import MessageHandler from "@runtime/module/Handler/MessageHandler";

export default class NeolithTrackApolloVehicleInfoMessageHandler extends MessageHandler<ClientMessage.NeolithTrackApolloVehicleInfoMessage> {
    protected async RunAsync(message: ClientMessage.NeolithTrackApolloVehicleInfoMessage): Promise<void> {
        console.log(message,'阿波罗界面，车辆信息++++++++++++++++++++++++++++++++++');
        HomeContent.Default.Apo_Accelerator.value = message.Accelerator
        HomeContent.Default.Apo_Angle.value = message.Angle
        HomeContent.Default.Apo_Brake.value = message.Brake
        HomeContent.Default.Apo_Speed.value = message.Speed
    }
}